<%@page import="com.shuohe.entity.system.user.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page language="java" import="java.util.*"%>

<%@ page import="com.shuohe.util.json.*" %>

<%@page import="java.io.PrintWriter"%> 

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    User user = null; 
    String userJson = null;
   
    PrintWriter ss = response.getWriter(); 
    try
    {
        user = (User)session.getAttribute("user");
        if(user==null)
        {
          System.out.println("user = null");
          //response.sendRedirect(basePath+"/pages/login.jsp");
          String topLocation = "<script>top.location.href=\""+basePath+"/pages/login.jsp\"</script>";
          ss.print(topLocation);     
        }    
        else
        {
            userJson = Json.toJsonByPretty(user);
        }
    }
    catch(Exception e)
    {
        String topLocation = "<script>top.location.href=\""+basePath+"/pages/login.jsp\"</script>";
        ss.print(topLocation);       
        e.printStackTrace();
    }
    


%>

<!DOCTYPE html>
<!-- saved from url=(0045)http://demo.topjui.com/html/portal/index.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <!-- TopJUI框架样式 -->
    <!--<link type="text/css" href="../../topjui/css/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="../../topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme"/>-->
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="/TopJUI/topjui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- layui框架样式 -->
    <link type="text/css" href="/pages/js/layui/css/layui.css" rel="stylesheet">
    <link type="text/css" href="/pages/js/font/font.css" rel="stylesheet">
    <link type="text/css" href="/pages/js/workbench/main.css" rel="stylesheet">
    <!-- jQuery相关引用 -->
    <script src="/pages/js/workbench/hm.js"></script>
    <script type="text/javascript" src="/TopJUI/topjui/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/TopJUI/topjui/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
	<script type="text/javascript" src="/TopJUI/static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="/TopJUI/topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="/TopJUI/topjui/js/locale/topjui.lang.zh_CN.js"></script>
    <!-- layui框架js -->
    <script src="/pages/js/layui/layui.js" charset="utf-8"></script>
    
    <script type="text/javascript" src="/pages/js/echarts/echarts.min.js"></script>

    <script type="text/javascript" src="workbench.js"></script>

    <script type="text/javascript" src="/pages/js/shuoheUtil.js"></script>
    
    <style>
        .layui-badge {
            height: initial;
            line-height: 30px;
            text-align: left;
            font-size: 14px;
        }
    </style>
<style>body>div#blockbyte-bs-indicator>div{opacity:0;pointer-events:none}body>iframe#blockbyte-bs-sidebar.blockbyte-bs-visible,body>iframe#blockbyte-bs-overlay.blockbyte-bs-visible{opacity:1;pointer-events:auto}body.blockbyte-bs-noscroll{overflow:hidden !important}body>div#blockbyte-bs-indicator>div{position:absolute;transform:translate3d(-37px, 0, 0);top:0;left:0;width:37px !important;height:100%;background:rgba(0,0,0,0.5);transition:opacity 0.3s, transform 0.3s;z-index:2}body>div#blockbyte-bs-indicator>div>span{-webkit-mask:no-repeat center/32px;-webkit-mask-image:url(chrome-extension://dagccnjbgadmgndndbcpcpfcnmdlgapg/img/icon-bookmark.svg);background-color:rgb(255,255,255);position:absolute;display:block;top:0;left:0;width:100%;height:100%}body>div#blockbyte-bs-indicator[data-pos='right']{left:auto;right:0}body>div#blockbyte-bs-indicator[data-pos='right']>div{transform:translate3d(37px, 0, 0);left:auto;right:0}body>div#blockbyte-bs-indicator.blockbyte-bs-hover>div{transform:translate3d(0, 0, 0);opacity:1}body>div#blockbyte-bs-indicator[data-pos='left'].blockbyte-bs-has-lsb>div{background:transparent}body>div#blockbyte-bs-indicator[data-pos='left'].blockbyte-bs-has-lsb>div>span{-webkit-mask-position-y:20px}body>iframe#blockbyte-bs-sidebar{width:350px;max-width:none;height:0;z-index:2147483646;background-color:rgba(255,255,255,0.8);border:none;display:block !important;transform:translate3d(-350px, 0, 0);transition:width 0s 0.3s, height 0s 0.3s, opacity 0.3s, transform 0.3s}body>iframe#blockbyte-bs-sidebar[data-pos='right']{left:auto;right:0;transform:translate3d(350px, 0, 0)}body>iframe#blockbyte-bs-sidebar.blockbyte-bs-visible{width:calc(100% + 350px);height:100%;transform:translate3d(0, 0, 0);transition:opacity 0.3s, transform 0.3s}body>iframe#blockbyte-bs-sidebar.blockbyte-bs-hideMask{width:calc(350px + 300px);background:none}body>iframe#blockbyte-bs-overlay{width:100%;max-width:none;height:100%;z-index:2147483647;border:none;background:rgba(0,0,0,0.5);transition:opacity 0.3s}
</style></head>

<body>
<div class="layui-container-fluid">
    <div class="panel_box row" id='panel_1'>
      
    </div>

<!--     <div class="layui-row layui-col-space10">
        <div class="layui-col-md12">
            <blockquote class="layui-elem-quote explain">
                <p>
                    致力于打造既美观实用又能快速开发的后台管理前端框架，解决传统EasyUI的性能和功能问题！
                    纯HTML调用功能组件，不用写JS代码的EasyUI，专注你的后端业务开发！
                </p>
                <p>
                    基于成熟稳定的EasyUI框架开发，集丰富组件+强大功能+优异性能+精美界面+便捷开发于一身，适用于企业级信息管理系统或Web后台管理系统
                </p>
                <p>
                    <span style="font-weight: bold;">框架下载：</span><a href="http://www.topjui.com/download.html" target="_blank" onclick="_hmt.push(['_trackEvent', '门户', '点击', 'TopJUI下载'])">http://www.topjui.com/download.html</a>
                    <span style="font-weight: bold;">动态演示：</span><a href="http://demo.ewsd.cn/login" target="_blank" onclick="_hmt.push(['_trackEvent', '门户', '点击', 'EMIS演示'])">http://demo.ewsd.cn/login</a>（整合JAVA
                    SSHM，<a href="http://www.ewsd.cn/emis.html" target="_blank" onclick="_hmt.push(['_trackEvent', '门户', '点击', 'EMIS介绍'])">查看详细介绍</a>）

                </p>
                <p>
                    <span style="font-weight: bold;">联系我们：</span>
                    <i class="fa fa-qq"></i> 251122361
                    <i class="fa fa-fax"></i> 0755-33942020
                    <i class="fa fa fa-envelope"></i> service@ewsd.cn
                    <a target="blank" href="tencent://message/?uin=251122361&amp;Site=TopJUI%E5%89%8D%E7%AB%AF%E6%A1%86%E6%9E%B6&amp;Menu=yes">
                        <img border="0" src="./index_files/pa" alt="点击这里给我发消息">
                    </a>
                </p>
            </blockquote>
        </div>
    </div> -->

    <div class="layui-row layui-col-space10" id='panel_2'>
        
    </div>

   

</div>

<script type="text/javascript">
    var user = <%=userJson%>;
</script>
<script type="text/javascript">
    // 百度统计代码开始
    // var _hmt = _hmt || [];
    // (function () {
    //     var hm = document.createElement("script");
    //     hm.src = "https://hm.baidu.com/hm.js?71559c3bdac3e45bebab67a5a841c70e";
    //     var s = document.getElementsByTagName("script")[0];
    //     s.parentNode.insertBefore(hm, s);
    // })();
    // 百度统计代码结束
</script>

<!-- <iframe id="blockbyte-bs-sidebar" data-pos="left" src="./index_files/saved_resource.html"></iframe><div id="blockbyte-bs-indicator" style="width: 22px;"></div></body></html> -->